package com.beaven.model.model.base;

import android.annotation.SuppressLint;
import android.app.Application;
import com.beaven.model.Factory;

/**
 * author: Beaven
 * time: 2017/5/18 19:04
 */

public class BaseApplication extends Application {

  @SuppressLint("StaticFieldLeak") private static Application instance;

  @Override public void onCreate() {
    super.onCreate();

    instance = this;
    Factory.init();
  }

  public static Application getInstance() {
    return instance;
  }
}
